Add a `cap-std-apis` feature with open/create
authorColin Walters <walters@verbum.org>
Wed, 2 Feb 2022 22:47:52 +0000 (17:47 -0500)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:57 +0000 (12:53 -0400)
commit6940896c4e4ef9cc39f841fae3c58622481cb427
tree653ac812dfb128a9e266f87b7f25be43310c11d8
parent4f7eea6aa7de423a822cf40d9aeb6f7a37cf4877
Add a `cap-std-apis` feature with open/create

I'm trying to make more use of `cap-std` in our stack, and
this will be a key enabling API.

Actually a notable side benefit of this is that we don't need
to teach the ostree C code itself to use `openat2`, we inherit
cap-std's setup.

All of the internal ostree code using the prior `openat()` should
continue to work.

I only did basic sanity checking of this; there may be bugs
in other APIs.
rust-bindings/rust/Cargo.toml
rust-bindings/rust/src/lib.rs
rust-bindings/rust/src/repo.rs
rust-bindings/rust/tests/repo/mod.rs
rust-bindings/rust/tests/util/mod.rs